package com.dynamic.idea.quick.develop.plugin.entity.base;


/**
 * provider的接口项目结构
 */
public class ProjectStructProviderEntity extends BaseStructEntity {


    /** provider层的包名,默认是service */
    private String providerName="provider";

    /** provider的后缀,默认是 Provider */
    private String providerSuffix="Provider";

    /**
     * 得到接口定义的路径
     * @return
     */
    public String getProviderPath() {
        return getRealPath(getSrcMainJavaBasePackagePath(),providerName);
    }

    /**
     * 得到接口定义的类名
     * @return
     */
    public String getProviderClassName(){
        return className+providerSuffix;
    }

    /**
     * 得到接口定义的java全限定类名
     * @return
     */
    public String getProviderClassFullName(){
        return basePackageName+"."+providerName+"."+getProviderClassName();
    }

    /**
     * 得到接口定义的java的全限定包名
     * @return
     */
    public String getProviderPackageFullName(){
        return basePackageName+"."+providerName;
    }

    /**
     * 得到接口定义的路径
     * @return
     */
    public String getProviderClassPath(){
        return getRealPath(getProviderPath(),getProviderClassName())+".java";
    }

    // get/set

    public String getProviderName() {
        return providerName;
    }

    public void setProviderName(String providerName) {
        this.providerName = providerName;
    }

    public String getProviderSuffix() {
        return providerSuffix;
    }

    public void setProviderSuffix(String providerSuffix) {
        this.providerSuffix = providerSuffix;
    }
}
